package com.newshub.admin.entity;

import lombok.Data;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * RSS 抓取日志实体，对应表：rss_fetch_logs
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RssFetchLog {
    private Long id;
    private Long rssFeedId;
    private LocalDate fetchDate;
    private LocalDateTime fetchTime;
    private String status; // ENUM: 'success', 'failed', 'partial_success', 'timeout', 'network_error'
    private Integer newsCount;
    private Integer duplicateCount;
    private Integer totalFetched;
    private Integer cleanedCount;
    private Integer savedCount;
    private Integer httpStatusCode;
    private Long responseSize;
    private String errorMessage;
    private Long executionTime;
    private LocalDateTime createdAt;
}
